package demo2;

import demo1.Test;

/**
 * Created with IntelliJ IEDA.
 * Description:
 * User:86186
 * Date:2022-05-15
 * Time:20:25
 */
public class TestDemo extends Test {
    public void func2(){
        System.out.println(super.a);
    }

    public static void main(String[] args) {
        Test test = new Test();
        test.func();
        // error :System.out.println(test.a);
    }
}
